package cn.tedu.ivos.user.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//VUE页面用来将UserSaveParamDTO作为插入一个用户的数据对象，传入到后端的SSM项目的UserController来新增一个用户的
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserSaveParamDTO {
    //Knife4j的注解。用来解释此字段的作用
    @Schema(description = "用户id")
    private Long id;//修改和新增用户用同一个页面，也都用此类(新增user不需要id，但修改需要)
    @Schema(description = "用户名")
    private String username;//密码不需要
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "年龄")
    private Integer age;
    @Schema(description = "性别")
    private String gender;
    @Schema(description = "用户状态")
    private String status;
    @Schema(description = "用户职级")
    private String level;
    @Schema(description = "上级id")
    private Long parentId;
}
